package com.dragon.modules.yuegou.entity.member;

import com.baomidou.mybatisplus.annotation.TableName;
import com.dragon.modules.yuegou.enums.member.LevelCycle;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * 会员等级表实体类<br>
 * 对应的表为：mem_level<br>
 *
 * @author pbuilder generated
 * @date 2021-06-30 15:45:58
 * @company sgy
 * @version 2.0
 */
@TableName("mem_level")
@ApiModel(description = "会员等级表")
public class LevelEntity {

	/**  */
	protected String id;

	/**  */
	protected String busdId;

	/** 会员名称 */
	@ApiModelProperty("会员名称")
	protected String name;

	/** [枚举]重置周期：0-当年-THATYEAR、1-当月-THATMONTH、2-滚动年-ROLLINGYEAR、3-滚动月-ROLLINGMONTH */
	@ApiModelProperty("[枚举]重置周期：0-当年-THATYEAR、1-当月-THATMONTH、2-滚动年-ROLLINGYEAR、3-滚动月-ROLLINGMONTH")
	protected LevelCycle cycle;

	/**  */
	protected String img;

	/** 等级需要累计积分 */
	@ApiModelProperty("等级需要累计积分")
	protected Integer points;

	/** 原始积分 */
	@ApiModelProperty("原始积分")
	protected Integer originalPoints;

	/** 获得积分 */
	@ApiModelProperty("获得积分")
	protected Integer obtainPoints;

	/** 会员权益 */
	@ApiModelProperty("会员权益")
	protected String rights;

	/** 会员权益图片 */
	@ApiModelProperty("会员权益图片")
	protected String rightsImg;

	/** 等级编号 */
	@ApiModelProperty("等级编号")
	protected Integer serialNumber;

	/**  */
	protected LocalDateTime createdTime;

	/**  */
	protected String createdBy;

	/**  */
	protected LocalDateTime modifiedTime;

	/**  */
	protected String modifiedBy;

	/** 逻辑删除，1表示已删除,0表示未删除 */
	@ApiModelProperty("逻辑删除，1表示已删除,0表示未删除")
	protected Boolean del;

	/**  */
	protected String delBy;

	/**  */
	protected LocalDateTime delTime;

	/**
	 * 构造一个空会员等级表实体对象
	 */
	public LevelEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个会员等级表实体对象
	 *
	 * @param other 其它对象
	 */
	public LevelEntity(LevelEntity other){
		super();
		this.id = other.id;
		this.busdId = other.busdId;
		this.name = other.name;
		this.cycle = other.cycle;
		this.img = other.img;
		this.points = other.points;
		this.originalPoints = other.originalPoints;
		this.obtainPoints = other.obtainPoints;
		this.rights = other.rights;
		this.rightsImg = other.rightsImg;
		this.serialNumber = other.serialNumber;
		this.createdTime = other.createdTime;
		this.createdBy = other.createdBy;
		this.modifiedTime = other.modifiedTime;
		this.modifiedBy = other.modifiedBy;
		this.del = other.del;
		this.delBy = other.delBy;
		this.delTime = other.delTime;
	}


	/**
	 * 获取
	 *
	 * @return id
	 */
	public String getId() {
		return id;
	}

	/**
	 * 设置
	 *
	 * @param id
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取
	 *
	 * @return busdId
	 */
	public String getBusdId() {
		return busdId;
	}

	/**
	 * 设置
	 *
	 * @param busdId
	 */
	public void setBusdId(String busdId) {
		this.busdId = busdId;
	}

	/**
	 * 获取会员名称
	 *
	 * @return name 会员名称
	 */
	public String getName() {
		return name;
	}

	/**
	 * 设置会员名称
	 *
	 * @param name 会员名称
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * 获取[枚举]重置周期：0-当年-THATYEAR、1-当月-THATMONTH、2-滚动年-ROLLINGYEAR、3-滚动月-ROLLINGMONTH
	 *
	 * @return cycle [枚举]重置周期：0-当年-THATYEAR、1-当月-THATMONTH、2-滚动年-ROLLINGYEAR、3-滚动月-ROLLINGMONTH
	 */
	public LevelCycle getCycle() {
		return cycle;
	}

	/**
	 * 设置[枚举]重置周期：0-当年-THATYEAR、1-当月-THATMONTH、2-滚动年-ROLLINGYEAR、3-滚动月-ROLLINGMONTH
	 *
	 * @param cycle [枚举]重置周期：0-当年-THATYEAR、1-当月-THATMONTH、2-滚动年-ROLLINGYEAR、3-滚动月-ROLLINGMONTH
	 */
	public void setCycle(LevelCycle cycle) {
		this.cycle = cycle;
	}

	/**
	 * 获取
	 *
	 * @return img
	 */
	public String getImg() {
		return img;
	}

	/**
	 * 设置
	 *
	 * @param img
	 */
	public void setImg(String img) {
		this.img = img;
	}

	/**
	 * 获取等级需要累计积分
	 *
	 * @return points 等级需要累计积分
	 */
	public Integer getPoints() {
		return points;
	}

	/**
	 * 设置等级需要累计积分
	 *
	 * @param points 等级需要累计积分
	 */
	public void setPoints(Integer points) {
		this.points = points;
	}

	/**
	 * 获取原始积分
	 *
	 * @return originalPoints 原始积分
	 */
	public Integer getOriginalPoints() {
		return originalPoints;
	}

	/**
	 * 设置原始积分
	 *
	 * @param originalPoints 原始积分
	 */
	public void setOriginalPoints(Integer originalPoints) {
		this.originalPoints = originalPoints;
	}

	/**
	 * 获取获得积分
	 *
	 * @return obtainPoints 获得积分
	 */
	public Integer getObtainPoints() {
		return obtainPoints;
	}

	/**
	 * 设置获得积分
	 *
	 * @param obtainPoints 获得积分
	 */
	public void setObtainPoints(Integer obtainPoints) {
		this.obtainPoints = obtainPoints;
	}

	/**
	 * 获取会员权益
	 *
	 * @return rights 会员权益
	 */
	public String getRights() {
		return rights;
	}

	/**
	 * 设置会员权益
	 *
	 * @param rights 会员权益
	 */
	public void setRights(String rights) {
		this.rights = rights;
	}

	/**
	 * 获取会员权益图片
	 *
	 * @return rightsImg 会员权益图片
	 */
	public String getRightsImg() {
		return rightsImg;
	}

	/**
	 * 设置会员权益图片
	 *
	 * @param rightsImg 会员权益图片
	 */
	public void setRightsImg(String rightsImg) {
		this.rightsImg = rightsImg;
	}

	/**
	 * 获取等级编号
	 *
	 * @return serialNumber 等级编号
	 */
	public Integer getSerialNumber() {
		return serialNumber;
	}

	/**
	 * 设置等级编号
	 *
	 * @param serialNumber 等级编号
	 */
	public void setSerialNumber(Integer serialNumber) {
		this.serialNumber = serialNumber;
	}

	/**
	 * 获取
	 *
	 * @return createdTime
	 */
	public LocalDateTime getCreatedTime() {
		return createdTime;
	}

	/**
	 * 设置
	 *
	 * @param createdTime
	 */
	public void setCreatedTime(LocalDateTime createdTime) {
		this.createdTime = createdTime;
	}

	/**
	 * 获取
	 *
	 * @return createdBy
	 */
	public String getCreatedBy() {
		return createdBy;
	}

	/**
	 * 设置
	 *
	 * @param createdBy
	 */
	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	/**
	 * 获取
	 *
	 * @return modifiedTime
	 */
	public LocalDateTime getModifiedTime() {
		return modifiedTime;
	}

	/**
	 * 设置
	 *
	 * @param modifiedTime
	 */
	public void setModifiedTime(LocalDateTime modifiedTime) {
		this.modifiedTime = modifiedTime;
	}

	/**
	 * 获取
	 *
	 * @return modifiedBy
	 */
	public String getModifiedBy() {
		return modifiedBy;
	}

	/**
	 * 设置
	 *
	 * @param modifiedBy
	 */
	public void setModifiedBy(String modifiedBy) {
		this.modifiedBy = modifiedBy;
	}

	/**
	 * 获取逻辑删除，1表示已删除,0表示未删除
	 *
	 * @return del 逻辑删除，1表示已删除,0表示未删除
	 */
	public Boolean getDel() {
		return del;
	}

	/**
	 * 设置逻辑删除，1表示已删除,0表示未删除
	 *
	 * @param del 逻辑删除，1表示已删除,0表示未删除
	 */
	public void setDel(Boolean del) {
		this.del = del;
	}

	/**
	 * 获取
	 *
	 * @return delBy
	 */
	public String getDelBy() {
		return delBy;
	}

	/**
	 * 设置
	 *
	 * @param delBy
	 */
	public void setDelBy(String delBy) {
		this.delBy = delBy;
	}

	/**
	 * 获取
	 *
	 * @return delTime
	 */
	public LocalDateTime getDelTime() {
		return delTime;
	}

	/**
	 * 设置
	 *
	 * @param delTime
	 */
	public void setDelTime(LocalDateTime delTime) {
		this.delTime = delTime;
	}

	public String toString() {
		return new StringBuilder().append("LevelEntity{").
				append("id=").append(id).
				append(",busdId=").append(busdId).
				append(",name=").append(name).
				append(",cycle=").append(cycle).
				append(",img=").append(img).
				append(",points=").append(points).
				append(",originalPoints=").append(originalPoints).
				append(",obtainPoints=").append(obtainPoints).
				append(",rights=").append(rights).
				append(",rightsImg=").append(rightsImg).
				append(",serialNumber=").append(serialNumber).
				append(",createdTime=").append(createdTime).
				append(",createdBy=").append(createdBy).
				append(",modifiedTime=").append(modifiedTime).
				append(",modifiedBy=").append(modifiedBy).
				append(",del=").append(del).
				append(",delBy=").append(delBy).
				append(",delTime=").append(delTime).
				append('}').toString();
	}

	/**
	 * 复制对象
	 *
	 * @return 复制后的新实体对象
	 */
	public LevelEntity copy() {
		return new LevelEntity(this);
	}

	/**  */
	public static final String COL_ID = "id";

	/**  */
	public static final String COL_BUSD_ID = "busd_id";

	/** 会员名称 */
	public static final String COL_NAME = "name";

	/** [枚举]重置周期：0-当年-THATYEAR、1-当月-THATMONTH、2-滚动年-ROLLINGYEAR、3-滚动月-ROLLINGMONTH */
	public static final String COL_CYCLE = "cycle";

	/**  */
	public static final String COL_IMG = "img";

	/** 等级需要累计积分 */
	public static final String COL_POINTS = "points";

	/** 原始积分 */
	public static final String COL_ORIGINAL_POINTS = "original_points";

	/** 获得积分 */
	public static final String COL_OBTAIN_POINTS = "obtain_points";

	/** 会员权益 */
	public static final String COL_RIGHTS = "rights";

	/** 会员权益图片 */
	public static final String COL_RIGHTS_IMG = "rights_img";

	/** 等级编号 */
	public static final String COL_SERIAL_NUMBER = "serial_number";

	/**  */
	public static final String COL_CREATED_TIME = "created_time";

	/**  */
	public static final String COL_CREATED_BY = "created_by";

	/**  */
	public static final String COL_MODIFIED_TIME = "modified_time";

	/**  */
	public static final String COL_MODIFIED_BY = "modified_by";

	/** 逻辑删除，1表示已删除,0表示未删除 */
	public static final String COL_DEL = "del";

	/**  */
	public static final String COL_DEL_BY = "del_by";

	/**  */
	public static final String COL_DEL_TIME = "del_time";
}
